﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SchoolManagementSystem.GUI
{
    public partial class PrincipalHome : SchoolManagementSystem.SuperForm1
    {
        private string userID;

        public PrincipalHome()
        {
            InitializeComponent();
        }

        public void setUserID(string userID)
        {
            this.userID = userID;
        }

        public string getUserID()
        {
            return userID;
        }

        private void artsSectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrincipalSearchTeachers artsTeacher = new PrincipalSearchTeachers();
            artsTeacher.Show();
        }

        private void commerceSectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrincipalSearchTeachers comTeacher = new PrincipalSearchTeachers();
            comTeacher.Show();
        }

        private void scienceSectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrincipalSearchTeachers sciTeacher = new PrincipalSearchTeachers();
            sciTeacher.Show();
        }

        private void grade12ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            PrincipalViewStudent studentSearch = new PrincipalViewStudent();
            studentSearch.Show();
        }

        private void grade12ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrincipalViewClass grade12Class = new PrincipalViewClass();
            grade12Class.Show();
        }

        private void grade13ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrincipalViewClass grade13Class = new PrincipalViewClass();
            grade13Class.Show();
        }

        private void nonAcadamicStaffToolStripMenuItem_Click(object sender, EventArgs e)
        {
            PrincipalViewClerk clerkView = new PrincipalViewClerk();
            clerkView.Show();
        }

        private void logoutToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.Close();
            LogInForm login = new LogInForm();
            login.Show();
        }
    }
}
